package ru.payment.wm.impl.response;

import ru.payment.wm.Invoice;
import ru.payment.wm.X10Response;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * User: sergey
 * Date: 14.04.2009
 * Time: 20:47:42
 */
public class X10ResponseImpl extends AbstractWebMoneyResponse implements X10Response {

  private static final long serialVersionUID = -1707885245889470956L;
  private List<Invoice> invoiceList = new ArrayList<Invoice>();

  public X10ResponseImpl() {
    super();
  }

  public List<Invoice> getInvoiceList() {
    return invoiceList;
  }

  @Override
  public String toString() {
    String sz = super.toString()+"\n-- out invoice list ["+getInvoiceList().size()+"] --";
    for (Invoice outInvoice : invoiceList) {
      sz = sz + "\n" + outInvoice + "\n---";
    }
    return sz;
  }

}
